import request from "@/utils/request";

// 查询列表
export function listPainter(query) {
  return request({
    url: "/api/painter",
    method: "get",
    params: query,
  });
}

// 编辑
export function updatePainter(data) {
  return request({
    url: "/api/painter/update",
    method: "post",
    data: data,
  });
}

// 查询
export function getPainter(id) {
  return request({
    url: "/api/painter/detail/" + id,
    method: "get",
  });
}
// 新增
export function addPainter(data) {
  return request({
    url: "/api/painter/add",
    method: "post",
    data: data,
  });
}
